<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>7.数组的splice方法</title>
  </head>
  <body>
    <script type="text/javascript" >
      let arr = [1,3,5,7,9]

      // arr[0] = 100
      arr.splice(0,1,100)

      console.log(Array.prototype.splice === arr.splice)
    </script>
  </body>
</html>